<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<body>
<?php
$me=$_GET['ad'];
?>
<table width="678" align="center">
    <tr>
        <td colspan="2"><h1>开始发贴</h1></td>
    </tr>
    <tr>
        <td width="586"><a href="page.php">首页</a> | <a href="fatie.php">发帖</a></td>
    </tr>
</table>
<table align="center" width="678">
    <tr>
        <td>
            <form name="form1" method="post" action="fatie_1.php?ad=<?php echo $me;?>" onsubmit="return inputCheck(this)">
                <p>标题：</p>
                <p>
                    <input type="test" name="title" id="email" style="width: 300px;height: 30px;line-height: 30px">
                </p>
                <p>
                    内容：
                </p>
                <p>
                    <textarea name="content" cols="90" rows="20"></textarea>
                </p>
                <p>
                    <input type="submit" name="button" id="button" value="提交">
                    <input type="reset" name="button2" id="button2" value="重置">
                </p>
            </form>
        </td>
    </tr>
</table>
</body>
<script>
    function inputCheck(logoForm) {
        if(logoForm.title.value=="")
        {
            alert('标题不能为空');
            logoForm.title.focus();
            return false;
        }
        if(logoForm.content.value=="")
        {
            alert('内容不能为空');
            logoForm.content.focus();
            return false;
        }
    }
</script>
</html>
